/* 
Copyright 2011 Michael Mallon

This file is part of SQAT.

SQAT is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

SQAT is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with SQAT.  If not, see <http://www.gnu.org/licenses/>.
*/

#include <iostream>

#include "LadderOperator.h"

using namespace std;

int main () 
{
	LadderOperator c = LadderOperator(string("s"),string("ba"),false,true);
	cout << "\\documentclass{article}"<< endl << "\\begin{document}" << endl;
	cout << c.toString() + " but works!" << endl;
	cout << "\\end{document}" << endl;

	try {
	LadderOperator d = LadderOperator(string("s"),string("ba"),false,false);
	cout << c.commuteWith(d);
	} catch (exception& e) {
		cout << e.what() << endl;
	}
	
	return 0;
}